/**
 * Project Name:dsrs-systemservice-domain
 * File Name:DatadictCreateForm.java
 * Package Name:com.bwda.dsrs.systemservice.domain.form.datadict;
 * Date:2019年4月28日
 * Copyright (c) 2019, 江苏保旺达软件有限公司 All Rights Reserved.
 */
package com.bwda.dsrs.systemservice.domain.form.datadict;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 数据字典（创建条件）
 *
 * @author liangjianyong
 * @date 2019/4/27
 */
@Data
@ApiModel(description = "数据字典")
public class DatadictCreateForm {

    @ApiModelProperty(value = "字典CODE")
    @NotNull(message = "字典CODE不能为空")
    @Size(min = 1 ,max = 64,message = "数据编码在1-64之间")
    private String dataDictCode;

    @ApiModelProperty(value = "数据字典类别")
    @NotNull(message = "数据字典类别不能为空")
    private String dataDictTypeCode;

    @ApiModelProperty(value = "字典名称")
    @NotNull(message = "字典名称不能为空")
    @Size(min = 1 ,max = 64,message = "数据名称在1-64之间")
    private String dataDictName;

    @ApiModelProperty(value = "字典值")
    @NotNull(message = "内容不能为空")
    @Size(min = 1 ,max = 140,message = "内容在1-140之间")
    private String dataDictValue;

    @ApiModelProperty(value = "重启生效 0：否  1：是")
    private Integer restartEffect;

    @ApiModelProperty(value = "备注")
    @Size(min = 0 ,max = 140,message = "备注在0-140之间")
    private String remark;

    @ApiModelProperty(value = "排序")
    @Max(value = 999 ,message = "排序应在1-999之间")
    private Integer orderNum;

    @ApiModelProperty(value = "0正常1禁用")
    private Integer status;

}